package com.ZeroCarbon.service;

import com.ZeroCarbon.domain.dto.UserLoginDTO;
import com.ZeroCarbon.domain.po.Account;
import com.ZeroCarbon.exception.BusinessLogicException;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

public interface IAccountService extends IService<Account> {
    void saveAccount(Account account) throws BusinessLogicException;

    void updateAccount(Account account) throws BusinessLogicException;

    UserLoginDTO login(Account account, HttpServletRequest request) throws BusinessLogicException;

    void getVerificationCode(String email) throws BusinessLogicException;

    void verifyVerificationCode(String email, String code) throws BusinessLogicException;
}
